package com.neusoft.aclome.cmp.cloud.server.jcce.repository;

import com.neusoft.aclome.cmp.cloud.server.jcce.dto.response.DataResourceDTO;
import com.neusoft.aclome.cmp.cloud.server.jcce.entity.DataResourceEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
@Repository
public interface DataResourceMapper extends Mapper<DataResourceEntity> {

    List<DataResourceDTO> getDataResourceList(@Param("proprietorshipStatus")String proprietorshipStatus,
                                              @Param("resourceApplyStatusEnum")String resourceApplyStatusEnum,
                                              @Param("category")String category,
                                              @Param("type")String type,
                                              @Param("userId")Long userId);


    /**
     * 数据共享用，没有交易相关的流程
     */
    List<DataResourceDTO> getDataShareResourceList(@Param("proprietorshipStatus") String proprietorshipStatus, @Param("category") String category, @Param("type") String type);
}